<ion-view view-title="选择合作伙伴">
    <ion-nav-buttons side="left">
        <button class="button back-button buttons icon ion-ios-arrow-left button-clear header-item" nav-direction="back" ui-sref="searchPartnerdz">返回</button>
    </ion-nav-buttons>
    <ion-content>
        <ion-refresher
                pulling-text="下拉刷新..."
                on-refresh="doRefresh()">
        </ion-refresher>
        <div ng-if="showloading" style="margin-top:60px; text-align: center">
            <ion-spinner icon="ios" style="height: 60px; width: 60px;"></ion-spinner>
        </div>
        <div ng-if="showloading == false" class="content">
            <div class="bar bar-header item-input-inset">
                <label class="item-input-wrapper">
                    <i class="icon ion-ios-search placeholder-icon"></i>
                    <input type="search" placeholder="搜索" ng-model="search.content" ng-change="searchPar(search.content)">
                </label>
            </div>
            <h5 ng-if="partnerData==''" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
            <ul class="list">
                <li class="item" collection-repeat="par in partnerData" ng-click="choosePartner(par.gsmc,par.gsdh)">
                    <i ng-if="par.gsmc!=''" style="margin-left: 10px;font-size: 16px;">{{par.gsmc}}</i>
                    <i ng-if="par.gsmc==''" style="margin-left: 10px;font-size: 16px;">暂无合作伙伴名称</i>
                    <i ng-if="par.gsdh!=''" style="font-size: 13px;margin-right: 10px;float: right;">{{par.gsdh}}</i>
                    <i ng-if="par.gsdh==''" style="font-size: 13px;margin-right: 10px;float: right;">暂无联系方式</i>
                </li>
            </ul>
        </div>
        <ion-infinite-scroll   on-infinite="loadMore()"  distance="1%" ng-if="hasNextPage()"></ion-infinite-scroll>
    </ion-content>
</ion-view>